/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.persistance;

import java.io.FileNotFoundException;
import java.io.IOException;
import nominalitzacions.domain.UrlDomainController;


/**
 *
 * @author daniel.camacho.rodriguez
 */
public class PasswordDataManagerController {

    private PasswordDataManager PDM;
    private UrlDomainController UDC;

    public PasswordDataManagerController() throws IOException {
            UDC = new UrlDomainController();
            PDM = new PasswordDataManager(UDC.getSecurity());
    }

    public String getPass() throws FileNotFoundException {
        return PDM.readPassword();
    }

    public void setPass(String s) throws IOException {
        PDM.writePassword(s);
    }

}
